<meta charset="utf-8">
<?php
require_once("tools.php");

$con = new con_db();
$content=htmlspecialchars($_POST['neirong']);
$sql = "INSERT INTO liuyan (id, time, neirong )
        VALUES ('$_COOKIE[user]', now(),'$content')";
$con->query($sql);

$url = "homepage.php";
header('location:' . $url);
?>